<style id='thridpartystyle'>
.trustlogin { background:url(<{$data.res_url}>/icons/thridparty1.gif) no-repeat left; padding-left:18px; height:20px; line-height:20px; }
#accountlogin{display:none;cursor:pointer;padding:5px;width:170px;z-index:100; position:absolute; border:2px solid #BADBF2; background:#fff; }
#accountlogin span{display:block;width:80px;height:27px;float:left;margin:2px;_display:inline;_margin:2px 1px 2px 2px;}
</style>
<span id="loginBar_<{$widgets_id}>" style="" class="ie-bug">
<{foreach from=$data.login_content item=login}>
<{$login}>
<{/foreach}>
  <span class="login-words"><{$setting.welcome}></span><a href="<{link app=b2c ctl=site_passport act=login}>" class="login-btn"><{t app='b2c'}>[登录]<{/t}></a><a href="<{link app=b2c ctl=site_passport act=signup}>" class="signup-btn"><{t app='b2c'}>[注册]<{/t}></a>
</span>
<span id="memberBar_<{$widgets_id}>" style="display:none">
    <{t app='b2c'}>您好,<{/t}>&nbsp;<span id="uname_<{$widgets_id}>"></span>！&nbsp;<a href="<{link app=b2c ctl=site_member act=index}>"><{t app='b2c'}>[会员中心]<{/t}></a>&nbsp;&nbsp;<a href="<{link app=b2c ctl=site_passport act=logout}>"><{t app='b2c'}>[退出]<{/t}></a>
</span>

<script>
var e = Cookie.read('UNAME')?Cookie.read('UNAME'):'';
if(e){
	$("uname_<{$widgets_id}>").innerHTML = e;
	$("memberBar_<{$widgets_id}>").setStyle('display','block');
	if($("loginBar_<{$widgets_id}>"))
	$("loginBar_<{$widgets_id}>").setStyle('display','none');
}
else{
	$("loginBar_<{$widgets_id}>").setStyle('display','block');
	if($("memberBar_<{$widgets_id}>"))
	$("memberBar_<{$widgets_id}>").setStyle('display','none');
}
</script>


